var prefix = api + "/msg/messages/";

$(function () {
  // var msgId = localStorage.getItem("currentMsgId")
  var msgId = getQueryString('id')
  var sendTypeDatas = dictByType('msg_channel')
  var options = {
    url: prefix + msgId,
    modalName: "消息基础",
    columns: [
      {
        field: 'receiverUserName',
        title: '接收人'
      },
      {
        field: 'updateTime',
        title: '发送时间'
      },
      {
        field: 'msgChannel',
        title: '发送方式',
        formatter: function (value, row, index) {
          return $.table.selectDictLabel(sendTypeDatas, value);
        }
      },
      {
        field: 'resultMsg',
        title: '发送结果',
//                formatter: function(value, row, index) {
//                	var length = 50;
//                	var str = value;
////                	if (arguments.length != this.length) length = 30;
//                	if (!value.length) str = '-'
//                	else if(value && value.length > length) str = value.substring(0,length)+'...'
//                	var span = '<span onmousemove="moveResult(\'' + row.resultMsg + '\')" onmouseout="outResult(\'' + row.resultMsg + '\')">'+str+'</span>'
//                    return span
//                }
      }]
  };
  $.table.init(options);

});
//function moveResult(val){
//	console.log('ddddddddd',val)
//}
//function outResult(val){
//	console.log('55555555555',val)
//}
